package com.example.myspringframework.context.event;

import com.example.myspringframework.context.ApplicationContext;
import com.example.myspringframework.context.ApplicationEvent;

/**
 * 事件基类，所有的事件都要继承这个类
 */
public class ApplicationContextEvent extends ApplicationEvent {
    public ApplicationContextEvent(Object source) {
        super(source);
    }

    public final ApplicationContext getApplicationContext() {
        return (ApplicationContext) this.getSource();
    }
}
